<script type="text/javascript">
setTimeout(function(){
<?php if($data['dialogId']){?>
$.pdialog.close('<?php echo $data['dialogId'];?>');
<?php }?>
<?php if($data['message']){?>
    <?php if($data['statusCode'] == 200){?>
        alertMsg.correct('<?php echo $data['message']?>');
    <?php }else{?>
        alertMsg.error('<?php echo $data['message']?>');
    <?php }?>
<?php }?>
<?php if($data['navTabId']){?>
navTab.reloadFlag('<?php echo $data['navTabId'];?>');
<?php }?>
},0);
</script>